package cn.v2tila.rsosa.student.service.serviceImpl;

import cn.v2tila.rsosa.student.entity.ZpxxDepEntity;
import cn.v2tila.rsosa.student.jpa.ZpxxDepJPA;
import cn.v2tila.rsosa.student.service.ZpxxDepService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author v2tila on 14:43 2019/3/15
 */
@Service
public class ZpxxDepServiceImpl implements ZpxxDepService {
    @Autowired
    private ZpxxDepJPA zpxxDepJPA;

    public ZpxxDepEntity saveAndFlush(ZpxxDepEntity zpxxDepEntity) {
        return zpxxDepJPA.saveAndFlush(zpxxDepEntity);
    }

    @Override
    public List<ZpxxDepEntity> findByZpxxId(Integer zpxxId) {
        return zpxxDepJPA.findByZpxxId(zpxxId);
    }

}
